package com.yuanfeng.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanfeng.business.dto.ManageShopAddressAddDTO;
import com.yuanfeng.business.dto.ManageShopAddressDefaultUpdateDTO;
import com.yuanfeng.business.dto.ManageShopAddressDetailQueryDTO;
import com.yuanfeng.business.entity.ShopShippingAddressEntity;
import com.yuanfeng.commoms.dto.userms.UserTokenBeanDTO;
import com.yuanfeng.commoms.util.ResponseResult;

/**
 * @ClassName ShopShippingAddressService
 * @Description 商家发货地址
 * @Author cf
 * @Date 2023/7/4 15:02
 * @Version 1.0
 */
public interface ShopShippingAddressService extends IService<ShopShippingAddressEntity> {

    /**
     * 店铺发货地址新增或更新
     * @param param
     * @return
     */
    ResponseResult addShopAddress(ManageShopAddressAddDTO param);

    /**
     * 删除店铺发货地址
     * @param param
     * @return
     */
    ResponseResult deleteShopAddress(ManageShopAddressDetailQueryDTO param);

    /**
     * 店铺发货地址详情查询
     * @param param
     * @return
     */
    ResponseResult queryShopAddressDetail(ManageShopAddressDetailQueryDTO param);

    /**
     * 默认地址修改
     *
     * @param param
     * @return
     */
    ResponseResult updateShopAddressDefault(ManageShopAddressDefaultUpdateDTO param);

    /**
     * fegin 查找地址信息
     *
     * @param shippingAddressId
     * @return
     */
    ResponseResult queryShippingAddress(Integer shippingAddressId);

    /**
     * 平台查询积分商品发货地址
     *
     * @param param
     * @return
     */
    ResponseResult selectAddress(UserTokenBeanDTO param);

    /**
     * 店铺发货地址列表查询
     *
     * @param param
     * @return
     */
    ResponseResult queryShopAddressList(UserTokenBeanDTO param);

}
